export default {
  async getModelCodeData(data) {
    return {
      code: 200,
      message: "SUCCESS",
      data: {
        total: 7,
        list: [
          {
            modelLevel: "1",
            modelCode: "3113264",
            modelName: "src_d_bcd02018",
            dateType: "D",
          },
          {
            modelLevel: "1",
            modelCode: "4016588",
            modelName: "src_d_bcd02017",
            dateType: "D",
          },
          {
            modelLevel: "1",
            modelCode: "4019202",
            modelName: "src_d_bcd02003",
            dateType: "D",
          },
          {
            modelLevel: "1",
            modelCode: "3113753",
            modelName: "src_d_bcd02001",
            dateType: "D",
          },
          {
            modelLevel: "1",
            modelCode: "4018888",
            modelName: "src_d_bcd02004",
            dateType: "D",
          },
          {
            modelLevel: "1",
            modelCode: "3142980",
            modelName: "src_d_bcd02013",
            dateType: "D",
          },
          {
            modelLevel: "1",
            modelCode: "4016700",
            modelName: "src_d_bcd02011",
            dateType: "D",
          },
        ],
        pageNum: 1,
        pageSize: 7,
        size: 7,
        startRow: 0,
        endRow: 6,
        pages: 1,
        prePage: 0,
        nextPage: 0,
        isFirstPage: true,
        isLastPage: true,
        hasPreviousPage: false,
        hasNextPage: false,
        navigatePages: 8,
        navigatepageNums: [1],
        navigateFirstPage: 1,
        navigateLastPage: 1,
      },
    };
  },
  async getModelLevelData(data) {
    return {
      code: 200,
      messsage: "success",
      data: [
        {
          modelLevel: "1",
          modelCode: "1",
          modelName: "采集层",
          dateType: null,
        },
        {
          modelLevel: "2",
          modelCode: "2",
          modelName: "数仓层",
          dateType: null,
        },
        {
          modelLevel: "3",
          modelCode: "3",
          modelName: "集市层",
          dateType: null,
        },
        {
          modelLevel: "4",
          modelCode: "4",
          modelName: "应用层",
          dateType: null,
        },
      ],
    };
  },
  async queryNodeData(data) {
    return {
      code: 200,
      message: "SUCCESS",
      data: {
        nodes: [
          {
            id: "1",
            nodeName: "移动业务网上用户数sddsddsddsds",
            nodeCode: "DM_C_D_DEV_5G_BASE",
            nodeStatus: "not-start",
            batch: "08:00",
            cornerMarkNum: 20,
            modelLevel: "1",
            flow: [
              {
                flowName: "流程名称1",
                flowStatus: "3",
              },
              {
                flowName:
                  "流程名称2傻得函数放松放松克里斯丁看电视看说的防守打法开始打肯定是",
                flowStatus: "1",
              },
            ],
          },
          {
            id: "2",
            nodeName: "移动业务网上用户数",
            nodeCode: "DM_C_D_DEV_5G_BASE_1",
            nodeStatus: "delay",
            batch: "08:00",
            cornerMarkNum: 453,
            modelLevel: "1",
            displayStatus: true,
            flow: [
              {
                flowName: "流程名称1",
                flowStatus: "3",
              },
              {
                flowName: "流程名称2",
                flowStatus: "1",
              },
            ],
          },
          {
            id: "3",
            nodeName: "移动业务网上用户数5765656",
            nodeCode: "DM_C_D_DEV_5G_BASE_2",
            nodeStatus: "delay",
            batch: "08:00",
            cornerMarkNum: 8,
            modelLevel: "1",
            flow: [
              {
                flowName: "流程名称1",
                flowStatus: "3",
              },
              {
                flowName: "流程名称2",
                flowStatus: "1",
              },
            ],
          },
          {
            id: "5",
            nodeName: "移动业务网上用户数",
            nodeCode: "DM_C_D_DEV_5G_BASE_1",
            nodeStatus: "delay",
            batch: "08:00",
            cornerMarkNum: 1,
            modelLevel: "2",
            flow: [],
          },
          {
            id: "6",
            nodeName: "移动业务网上用户数",
            nodeCode: "DM_C_D_DEV_5G_BASE_2",
            nodeStatus: "delay",
            batch: "08:00",
            cornerMarkNum: 1,
            modelLevel: "2",
            flow: [
              {
                flowName: "流程名称1",
                flowStatus: "3",
              },
              {
                flowName: "流程名称2",
                flowStatus: "1",
              },
            ],
          },
          {
            id: "7",
            nodeName: "移动业务网上用户数",
            nodeCode: "DM_C_D_DEV_5G_BASE",
            nodeStatus: "not-start",
            batch: "08:00",
            cornerMarkNum: 1,
            modelLevel: "2",
            flow: [
              {
                flowName: "流程名称1",
                flowStatus: "3",
              },
              {
                flowName: "流程名称2",
                flowStatus: "1",
              },
            ],
          },
          {
            id: "8",
            nodeName: "移动业务网上用户数",
            nodeCode: "DM_C_D_DEV_5G_BASE_1",
            nodeStatus: "delay",
            batch: "08:00",
            cornerMarkNum: 888,
            modelLevel: "2",
          },
          {
            id: "9",
            nodeName: "移动业务网上用户数",
            nodeCode: "DM_C_D_DEV_5G_BASE_2",
            nodeStatus: "delay",
            batch: "08:00",
            cornerMarkNum: 1,
            modelLevel: "3",
          },
          {
            id: "10",
            nodeName: "移动业务网上用户数",
            nodeCode: "DM_C_D_DEV_5G_BASE",
            nodeStatus: "not-start",
            batch: "08:00",
            cornerMarkNum: 1,
            modelLevel: "3",
          },
          {
            id: "11",
            nodeName: "移动业务网上用户数",
            nodeCode: "DM_C_D_DEV_5G_BASE_1",
            nodeStatus: "delay",
            batch: "08:00",
            cornerMarkNum: 1,
            modelLevel: "4",
          },
          {
            id: "12",
            nodeName: "移动业务网上用户数",
            nodeCode: "DM_C_D_DEV_5G_BASE_2",
            nodeStatus: "delay",
            batch: "08:00",
            cornerMarkNum: 1,
            modelLevel: "4",
          },
          {
            id: "13",
            nodeName: "移动业务网上用户数",
            nodeCode: "DM_C_D_DEV_5G_BASE",
            nodeStatus: "not-start",
            batch: "08:00",
            cornerMarkNum: 1,
            modelLevel: "4",
          },
          {
            id: "14",
            nodeName: "移动业务网上用户数",
            nodeCode: "DM_C_D_DEV_5G_BASE_1",
            nodeStatus: "delay",
            batch: "08:00",
            cornerMarkNum: 1,
            modelLevel: "4",
          },
          {
            id: "15",
            nodeName: "移动业务网上用户数",
            nodeCode: "DM_C_D_DEV_5G_BASE_2",
            nodeStatus: "delay",
            batch: "08:00",
            cornerMarkNum: 1,
            modelLevel: "4",
          },
        ],
        edges: [
          {
            source: "1",
            target: "5",
          },
          {
            source: "2",
            target: "6",
          },
          {
            source: "3",
            target: "7",
          },
          {
            source: "3",
            target: "8",
          },
          {
            source: "5",
            target: "9",
          },
          {
            source: "6",
            target: "9",
          },
          {
            source: "7",
            target: "10",
          },
          {
            source: "8",
            target: "10",
          },
          {
            source: "10",
            target: "11",
          },
          {
            source: "10",
            target: "12",
          },
          {
            source: "10",
            target: "13",
          },
          {
            source: "10",
            target: "14",
          },
          {
            source: "10",
            target: "15",
          },
        ],
      },
    };
  },
};
